package com.up.upzl.biz.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import com.up.upzl.base.service.impl.BaseServiceImpl;
import com.up.upzl.biz.domain.ShopSupporting;
import com.up.upzl.biz.repository.ShopSupportingRepository;
import com.up.upzl.biz.service.ShopSupportingService;

@Service
public class ShopSupportingServiceImpl extends BaseServiceImpl<ShopSupporting, Long> implements ShopSupportingService {

	@Autowired
	private ShopSupportingRepository shopSupportingRepository;

	@Override
	public Page<ShopSupporting> findByNameLike(String name, Pageable page) {
		return shopSupportingRepository.findByNameLike("%" + name + "%", page);
	}

	@Override
	public ShopSupporting findByName(String name) {
		return shopSupportingRepository.findByName(name);
	}

}
